#!/bin/sh
echo "GCC is Compiling Source File Now"
gcc -pg In_Degree_Test.c -o ../bin/In_Degree_Test
gcc -pg Out_Degree_Test.c -o ../bin/Out_Degree_Test
gcc -pg PageRank_Simple.c -o ../bin/PageRank_Simple
gcc -pg PageRank_Standard.c -o ../bin/PageRank_Standard
gcc -pg Connectivity_Test.c -o ../bin/Connectivity_Test
echo "GCC has Finished Compiling"
echo ""
cd ../bin
echo "Test the In Degree Now"
time -p ./In_Degree_Test
echo ""
echo "Test the Out Degree Now"
time -p ./Out_Degree_Test
echo ""
echo "Test the Simple PageRank Now"
time -p ./PageRank_Simple
echo ""
echo "Test the Standard PageRank Now"
time -p ./PageRank_Standard
echo ""
echo "Test the Connectivity Now"
time -p ./Connectivity_Test
